package com.zhb.cloud.kafka.model;

import java.io.Serializable;
import javax.persistence.*;

import lombok.Data;

import java.util.Date;

@Entity
@Table(name = "s_role_module")
@Data
public class RoleModule implements Serializable {
	private static final long serialVersionUID = 2385171180332604894L;

	@Id
	private String id;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "operate_time")
	private Date operateTime;

	@Column(name = "module_id", length = 32)
	private Module moduleId;

	@Column(name = "role_id", length = 32)
	private Role roleId;
}